Skip to main content

Buffer Class

Description:

  A class for creating Buffer object.

__call

Type: Metamethod.

Description:

  Creates a new buffer instance.

Signature:

metamethod __call: function(self: BufferClass, size: integer): Buffer

Parameters:

ParameterTypeDescription
sizeintegerThe size of the buffer to create.

Returns:

Return TypeDescription
BufferA new instance of the "Buffer" type with the given size.